package zad1;

public class MiddleWorker extends Workers {
	public MiddleWorker(int workId) {
		super("MiddleWorker "+ workId);
	}

	@Override
	public String consume(String data) {
		System.out.println(getWorkId() + " consuming: " + data);
		return data + " " + getWorkId();
	}
}
